using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yq.IBase;
using yq.Model.Base;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using cn.Util;

namespace yq.Model.Logic
{
    /// <summary>
    /// File_Ver - 文件版本控制 - 对象继承类
    /// </summary>
    [MetadataType(typeof(FileVerValidaTion))]
    public class FileVer : IFileVer<FileVer>
    {


        #region 生成实体类验证属性
        /// <summary>
        /// 辅助验证类
        /// </summary>
        [Bind]
        public class FileVerValidaTion
        {



            /// <summary>
            /// 版本ID
            /// </summary>
            [Display(Name = "版本ID")]
            [Required]
            [StringLength(36)]
            public String VerId
            {
                get;
                set;
            }





            /// <summary>
            /// 文件ID
            /// </summary>
            [Display(Name = "文件ID")]
            [Required]
            [StringLength(36)]
            public String FileId
            {
                get;
                set;
            }





            /// <summary>
            /// 文件信息ID
            /// </summary>
            [Display(Name = "文件信息ID")]
            [StringLength(36)]
            public String FileInfoId
            {
                get;
                set;
            }





            /// <summary>
            /// 签入时间
            /// </summary>
            [Display(Name = "签入时间")]
            [Required]

            public DateTime CheckInTime
            {
                get;
                set;
            }





            /// <summary>
            /// 签入用户ID
            /// </summary>
            [Display(Name = "签入用户ID")]
            [Required]
            [StringLength(36)]
            public String CheckInUserId
            {
                get;
                set;
            }





            /// <summary>
            /// 是否当前版本
            /// </summary>
            [Display(Name = "是否当前版本")]
            [Required]
            [RegularExpression(RegularExpressionString.Int, ErrorMessage = "必须输入数字")]

            public yq.Enums.BooleanType IsCurrent
            {
                get;
                set;
            }





            /// <summary>
            /// 说明
            /// </summary>
            [Display(Name = "说明")]
            [StringLength(500)]
            public String Detailed
            {
                get;
                set;
            }





        }
        #endregion 生成实体类验证属性
    }
}
